#include"SeqList.h"


void testSeqList()
{
	SeqNode head;
	Seqinit(&head);
	
	SeqPushBack(&head, 1);
	SeqPushBack(&head, 2);
	SeqPushBack(&head, 3);
	SeqPushBack(&head, 4);

	SeqPushFront(&head, 10);
	SeqPushFront(&head, 20);
	SeqPushFront(&head, 30);
	SeqPushFront(&head, 40);
	SeqPushFront(&head, 40);


	/*SeqPopBack(&head);
	SeqPopFront(&head);
	SeqPopFront(&head);*/
	/*SeqPopFront(&head);
	SeqPopFront(&head);
	SeqPopFront(&head);*/

	int pos = SeqFind(&head, 10);
	if (pos >= 0)
	{
		//SeqErase(&head, pos);
		SeqInsert(&head, pos, 100);
		Seqmodify(&head, pos, 1000);
	}
	Seqprint(&head);

}


int main()
{
	testSeqList();
	system("pause");
	return 0;
}